#include <iostream>

using namespace std;

class Student {
private:
    int No;
protected:
    int Age;

    void SetNo(int no) {
        this->No = no;
    };

    void SetAge(int age) {
        this->Age = age;
    };

    void SetSex(char sex) {
        this->Sex = sex;
    };
public:
    char Sex;

    int GetNo() const {
        return No;
    };

    int GetAge() const {
        return Age;
    };

    int GetSex() const {
        return Sex;
    };

    void show() {
        cout << "No=" << No << '\t' << "Age=" << Age << '\t' << "Sex=" << Sex << endl;
    }

    void SetStudent(int no, int age, char sex) {
        SetNo(no);
        SetAge(age);
        SetSex(sex);
    }
};

class Score : public Student {
private:
    int Phi, Math;
public:
    int SetPhi(int phi) {
        return this->Phi = phi;
    }

    int SetMath(int math) {
        return this->Math = math;
    }

    void show() {
        cout<<"No="<<GetNo()<<'\t'<<"Age="<<GetAge()<<'\t'<<"Sex="<<GetSex()<<endl;
    }
};